package org.csu.demo.persistence;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.csu.demo.domain.Sequence;
import org.springframework.stereotype.Repository;

@Repository
public interface SequenceMapper extends BaseMapper<Sequence> {
    @Update("UPDATE SEQUENCE SET NEXTID = #{sequence.nextId} WHERE NAME = #{sequence.name} ")
    void updateSequenceQty(@Param("sequence") Sequence sequence);
}
